package com.gemframework.common;

public class GemException extends RuntimeException {

    public GemException() {
        super();
    }

    public GemException(ErrorCode code) {
        super(code.getMessage());
    }

    public GemException(String message) {
        super(message);
    }

    public GemException(String message, Throwable cause) {
        super(message, cause);
    }

    public GemException(Throwable cause) {
        super(cause);
    }

    public static GemException newException(ErrorCode code) {
        return new GemException(code.getMessage());
    }

}
